﻿//-----------------------------------------------------------------------
// <copyright file="Schedule.cs" company="Christian Coda">
// Copyright (c) Christian Coda. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------

namespace DancingSite.Models
{
    using System;
    using System.ComponentModel.DataAnnotations;

    /// <summary>
    /// The Schedule model.
    /// This encapsulates information about the timing of a dance event.
    /// </summary>
    public class Schedule
    {
        /// <summary>
        /// Gets or sets the Id.
        /// </summary>
        public int ScheduleId { get; set; }

        /// <summary>
        /// Gets or sets the start time of this event.
        /// </summary>
        [Required(ErrorMessage = "Start date & time is required")]
        [DisplayFormat(DataFormatString = "{0:f}")]
        public DateTime StartTime { get; set; }

        /// <summary>
        /// Gets or sets the end time of this event.
        /// </summary>
        [Required(ErrorMessage = "End date & time is required")]
        [DisplayFormat(DataFormatString = "{0:f}")]
        public DateTime EndTime { get; set; }

        /// <summary>
        /// Gets or sets the ID of the dance this is associated with.
        /// </summary>
        public int DanceId { get; set; }
    }
}